﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(OfficeSpaceMetadata))]//使用OfficeSpaceMetadata对OfficeSpace进行数据验证
    public partial class OfficeSpace : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
        
        [Display(Name = "DanWeiGuid")]
        public string DanWeiGuidOld { get; set; }
        
        #endregion

    }
    public class OfficeSpaceMetadata
    {
			[ScaffoldColumn(false)]
			[Display(Name = "RowGuid", Order = 1)]
			public object RowGuid { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "创建时间", Order = 2)]
			[DataType(System.ComponentModel.DataAnnotations.DataType.DateTime,ErrorMessage="时间格式不正确")]
			public DateTime? CreateTime { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "创建人", Order = 3)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object CreateUserGuid { get; set; }

			[ScaffoldColumn(true)]
            [Display(Name = "办公地点编号", Order = 4)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object No { get; set; }

			[ScaffoldColumn(true)]
            [Display(Name = "办公地点名称", Order = 5)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object Name { get; set; }

			[ScaffoldColumn(true)]
            [Display(Name = "所属单位", Order = 6)]
			[StringLength(36, ErrorMessage = "长度不可超过36")]
			public object DanWeiGuid { get; set; }

			[ScaffoldColumn(true)]
            [Display(Name = "办公所在楼层", Order = 7)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object Floor { get; set; }


    }


}

